<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>时间工具</title>

    <link rel="stylesheet" type="text/css" href="../css/normalize.css" />
    <link rel="stylesheet" type="text/css" href="../css/tool-time.css" />
</head>
<body>
    <form name="timeOpForm">
        <div class="form-item-wrapper">
            <div class="form-item-label">UTC时间戳</div>
            <div class="form-item-input"><input name="timeNumber" type="text" /></div>
            <div class="form-item-attach">毫秒</div>
        </div>
        <div class="form-item-wrapper">
            <div class="form-item-label">当地时间</div>
            <div class="form-item-input"><input name="timeString" type="text" /></div>
            <div class="form-item-attach"><span id="timezone-offset-span"></span></div>
        </div>
        <div class="form-item-wrapper">
            <input type="button" value="UTC时间戳 转 当地时间" onclick="time2String()" />
            <input type="button" value="当地时间 转 UTC时间戳"onclick="time2Number()" />
        </div>
        <div class="form-item-wrapper">
            <input type="button" value="清空" onclick="timeClear()" />
            <input type="button" value="获取当前系统时间" onclick="timeGet()" />
        </div>
    </form>
    <script src="../lib/moment.js"></script>
    <script src="../js/tool-time.js"></script>
</body>
</html>